Coding TestProgrammersLevel 1콜라츠 추측On this page콜라츠 추측 Solution function solution(num, cnt = 0) { if (num === 1) return 500 <= cnt ? -1 : cnt; return solution(num % 2 === 0 ? num / 2 : num * 3 + 1, ++cnt);} Review . References Programmers - 콜라츠 추측